package com.qijia.travel.domain;

import java.lang.reflect.Method;
import java.math.BigDecimal;

import com.qijia.travel.helper.ObjectHelper;

public class TouristGroupProfit {

	private Integer touristGroupProfitId;
	private Integer touristGroupDetailId;
	private String touristGroupSn;
	private Integer guideId;
	private String guideName;
	private BigDecimal profitAmount;

	public Integer getTouristGroupProfitId() {
		return touristGroupProfitId;
	}

	public void setTouristGroupProfitId(Integer touristGroupProfitId) {
		this.touristGroupProfitId = touristGroupProfitId;
	}

	public Integer getTouristGroupDetailId() {
		return touristGroupDetailId;
	}

	public void setTouristGroupDetailId(Integer touristGroupDetailId) {
		this.touristGroupDetailId = touristGroupDetailId;
	}

	public String getTouristGroupSn() {
		return touristGroupSn;
	}

	public void setTouristGroupSn(String touristGroupSn) {
		this.touristGroupSn = touristGroupSn;
	}

	public Integer getGuideId() {
		return guideId;
	}

	public void setGuideId(Integer guideId) {
		this.guideId = guideId;
	}

	public String getGuideName() {
		return guideName;
	}

	public void setGuideName(String guideName) {
		this.guideName = guideName;
	}

	public BigDecimal getProfitAmount() {
		return profitAmount;
	}

	public void setProfitAmount(BigDecimal profitAmount) {
		this.profitAmount = profitAmount;
	}
	
	public String toString() {
		Method[] ms = this.getClass().getDeclaredMethods();
		String s = "";
		for (Method m : ms) {
			if (m.getName().indexOf("get") != 0)
				continue;
			try {
				s += m.getName() + "-->"
						+ ObjectHelper.invokeMethod(this, m.getName()) + " \n ";
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return s;
	}

}